package com.ujson.chat.server;

import com.ujson.base.common.utils.SpringContextUtil;
import com.ujson.chat.server.netty.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
public class ChatServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ChatServerApplication.class, args);

        // 启动server
        SpringContextUtil.getBean(NettyServer.class).createServer();
    }
}
